From 102ab97f807f7238fc0dd96a1a137bb4d41eec10 Mon Sep 17 00:00:00 2001 From: Behnam Esfahbod Date: Fri, 1 Sep 2017 01:33:11 -0700 Subject: [PATCH] [doc] Publish book to gh-pages --- .travis.yml | 4 +++- src/ci/dox.sh | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 404d32804..b925208bc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,6 +21,8 @@ matrix: - env: TARGET=x86_64-unknown-linux-gnu ALT=i686-unknown-linux-gnu rust: nightly + install: + - cargo install mdbook script: - cargo test - cargo doc --no-deps @@ -31,7 +33,7 @@ matrix: [ $(uname -s) = Linux ] && pip install ghp-import --user && $HOME/.local/bin/ghp-import -n target/doc && - git push -qf https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages 2>&1 > /dev/null + git push -qf https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages 2>&1 >/dev/null exclude: - rust: stable diff --git a/src/ci/dox.sh b/src/ci/dox.sh index 5f65a31ad..c9417044f 100644 --- a/src/ci/dox.sh +++ b/src/ci/dox.sh @@ -26,3 +26,8 @@ for doc in $DOCS; do -o target/doc \ src/doc/$doc.md done + +# Temporary preview for mdBook docs +cd src/doc/book +$HOME/.cargo/bin/mdbook build --no-create --dest-dir ../../../target/doc/book +cd ../../../ -- 2.30.2